drm/vc4: prepare for CEC support
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 16 Jul 2017 10:48:03 +0000 (12:48 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:08:28 +0000 (01:08 +0000)
commitb33059c1fb9447a7d5f64fc6153f3858d80327d4
tree2ec7e57b85ea5f688f686612f1572b1939f75c36
parentcabe77f8b7daa9f3c8a00338d106995d2d41b5cb
drm/vc4: prepare for CEC support

In order to support CEC the hsm clock needs to be enabled in
vc4_hdmi_bind(), not in vc4_hdmi_encoder_enable(). Otherwise you wouldn't
be able to support CEC when there is no hotplug detect signal, which is
required by some monitors that turn off the HPD when in standby, but keep
the CEC bus alive so they can be woken up.

The HDMI core also has to be enabled in vc4_hdmi_bind() for the same
reason.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170716104804.48308-3-hverkuil@xs4all.nl
(cherry picked from commit 10ee275cb12f884ce09bed69ea387eae73d7fece)
drivers/gpu/drm/vc4/vc4_hdmi.c